<div id="hot-product" class="block layout-3col-col3">
	
    <div class="title"><h4>Sản phẩm hot</h4></div>
    <div class="content">
        <ul>
        <?php

			$result = SanPham::SanPhamBanChay();
			
			for($i = 0 ; $i < count($result) ; $i++)
			{
				$row = $result[$i];
		?>
            <li class="first">
                <img src="temp/product.jpg" />
                <div class="info">
                    <h4><a href="<?php echo GetUrl("NguoiMua/chitietsanpham.php?masp=$row->sp_ma") ?>"><?php echo $row->sp_ten; ?></a></h4>
                    <h4><?php $cost = $row->sp_don_gia .'/' .$row->sp_don_vi_tinh;  echo $cost; ?></h4>
                    <h5><a href="<?php echo GetUrl("NguoiMua/seller-page.php?magh=$row->sp_ma_gian_hang") ?>"><?php echo $row->sp_ten_gian_hang; ?></a></h5>
                    <h6><a ><?php echo $row->sp_username_chu_giang_hang; ?></a></h6>								
                    <label></label>
                    <p><?php echo $row->sp_mo_ta; ?></p>
                </div>								
            </li>
		<?php
			}
		?>            
            
        </ul>
    </div>
</div>